<template>
    <div class="category">
        <h2>{{title}}分类</h2>
        <slot name="center"></slot>
        <slot name="footer">暂无内容</slot>
    </div>
</template>

<script>
    export default {
        name: 'Category',
        props: ['title', 'list']
    }
</script>

<style scoped>
    .category {
        background-color: skyblue;
        width: 200px;
        height: 300px;
    }

    h2 {
        background-color: orange;
        text-align: center;
    }
</style>